//
// Copyright (c) by Medtronic, Inc., 2012
//
//   $URL: http://build-tool.googlecode.com/svn/trunk/BuildTool/quals/main_fw/code/shared_app/retargeted_libs.c $
//   $Revision: 71 $
//   $Date: 2013-08-12 13:43:22 +0000 (Mon, 12 Aug 2013) $
//   $Author: chevalier.beaumont@gmail.com $

///////////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////
/// @defgroup DeviceSupport Retargeted C libraries
/// @ingroup SupportLibs
///
/// Provides defintions for retargeted Standard C functions.
///

#ifdef TODO_RTL
///////////////////////////////////////////////////////////////////////////////////////////
///
/// @brief Provided reimplementation of the the default C library assert functionality.
///			The reason for retargeting is to correctly handle the assert with device HW.
///////////////////////////////////////////////////////////////////////////////////////////
void __aeabi_assert(const char *expr, const char *file, int line)
{
	while(1){};
}
#endif
///////////////////////////////////////////////////////////////////////////////////////////
///
/// @brief Provided reimplementation of the the default C library functionality.
///			The reason for retargeting is to avoid using semhosting library at startup.
///			Semhosting breaks the RTL simulation if it runs without the firmware debugger.
///////////////////////////////////////////////////////////////////////////////////////////
char *_sys_command_string(char *cmd, int len)
{
	return cmd;
}
